package share.item;

import config.Item.Item;

// 内部类表示格子中的道具
public class GridItem {
    Item item;
    int x;
    int y;

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public GridItem(Item item, int x, int y) {
        this.item = item;
        this.x = x;
        this.y = y;
    }
}